<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>CSS的不可继承属性</title>
    <style>
        .test1 {
            background-color: red;
            width: 500px;
            height: 300px;
        }

        #second {
            background-color: yellow;
        }
    </style>
</head>
<body>
    <div class="test1">我是父div
        <div id="second">我是子div</div>
    </div>
</body>
</html>